Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

404
Visualizações
TypeError: _this[("render" + data.type)] is not a function

enter image description here

This is an error I'm getting in the console. I don't know why I'm getting this moreover I have written the code according to the documentation of Syncfusion library.

Below is the code I have written:

import React from 'react';
import { SparklineComponent, Inject, SparklineTooltip } from '@syncfusion/ej2-react- 
charts';

const Sparkline = ({ id, height, width, color, currentColor, data, type }) => {
    return (
       <SparklineComponent
          id={id}
          height={height}
          width={width}
          lineWidth={1}
          valueType="Numeric"
          fill={color}
          border={{ color: currentColor, width: 2 }}
          dataSource={data}
          xName="x"
          yName="y"
          type={type}
          tooltipSettings={{
              visible: true,
              format: '${x} : data ${y}', //Getting error in this line//
              trackLineSettings: {
                  visible: true
              }
          }}
      >
          <Inject services={[ SparklineTooltip ]} />
      </SparklineComponent>
  );
};

 export default Sparkline;

Below is the screenshot of the documentation and the link to it too.

Documentation ScreenShot

Link to Syncfusion Documentation

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I have ensured your reported scenario with the snippet available in provided documentation link. Sparkline control is rendered properly without any exception. Please check with the below sample and screenshot.

Sparkline

Sample : https://stackblitz.com/edit/react-w5tumd

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda